home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16223 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news.sprintlink.net!datalytics!usenet
  2. From: Rob Stewart <stew@datalytics.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Calling a bmp as an opening logo with C++.
  5. Date: Tue, 09 Apr 1996 17:41:46 -0400
  6. Organization: Datalytics, Inc
  7. Message-ID: <316AD99A.1999@datalytics.com>
  8. References: <316A5E8A.3B9C@magi.com>
  9. NNTP-Posting-Host: 204.62.224.71
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. Hans A. Vander Wal wrote:
  16. > Does anyone know the procedure to call an external bmp to preload as a program Logo??
  17. > An example of this action would be as in MS-Word, Wordperfect, Powerbuilder...when the
  18. > user clicks on the program Icon the first thing the user sees is the program Logo. This
  19. > routine runs for about 5-10 seconds then the application runs.
  20. > We can't seem to find any documentation that covers this element in Visual C++
  21. > programming.
  22.  
  23. We wrote a class that handles all that.  The splash screen lasts 
  24. a predetermined time or disappears earlier when the object goes 
  25. out of scope, depending upon how you construct it.  The bitmap 
  26. appears in a separate window.
  27.  
  28. This requires the collaboration of two classes.  One controls 
  29. the window and destroys it when a timer expires.  This object 
  30. must exist on the heap so the splash screen window survives the 
  31. destruction of the outer class, if so configured.  The outer 
  32. class' dtor, if so configured, (and possibly another mf) 
  33. instructs the window mgr class to destroy the window.
  34.  
  35. Synchronization is an issue, since the window mgr class can 
  36. destroy the window due to a timeout or instruction from the 
  37. outer class.
  38.  
  39. -- 
  40. Robert Stewart        | My opinions are usually my own.
  41. Datalytics, Inc.    | stew@datalytics.com
  42.